//
// Created by yu on 20-6-5.
//

#ifndef DREAMER_RENDER_H
#define DREAMER_RENDER_H

#include <GLES/gl.h>
#include <EGL/egl.h>

class Render {
public:
    bool init();
    void destroy();

public:
//    pthread_t _threadId;
//    pthread_mutex_t _mutex;
//    enum RenderThreadMessage _msg;

    // android window, supported by NDK r5 and newer
    ANativeWindow* _window;

    EGLDisplay _display;
    EGLSurface _surface;
    EGLContext _context;
    GLfloat _angle;
};


#endif //DREAMER_RENDER_H
